from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *


class Logined_in_window(object):
    def setupUi(self, Form):
        if not Form.objectName():
            Form.setObjectName(u"Form")
        Form.resize(943, 795)
        self.gridLayout_2 = QGridLayout(Form)
        self.gridLayout_2.setObjectName(u"gridLayout_2")
        self.tabWidget = QTabWidget(Form)
        self.tabWidget.setObjectName(u"tabWidget")
        font = QFont()
        font.setPointSize(20)
        self.tabWidget.setFont(font)
        self.tabWidget.setStyleSheet(u"QTabBar::tab {width: 200px; height: 100px;}")
        self.setting_page = QWidget()
        self.setting_page.setObjectName(u"setting_page")
        self.gridLayout = QGridLayout(self.setting_page)
        self.gridLayout.setObjectName(u"gridLayout")
        self.verticalLayout_2 = QVBoxLayout()
        self.verticalLayout_2.setObjectName(u"verticalLayout_2")
        self.verticalSpacer_4 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.verticalLayout_2.addItem(self.verticalSpacer_4)

        self.label_2 = QLabel(self.setting_page)
        self.label_2.setObjectName(u"label_2")
        self.label_2.setFont(font)

        self.verticalLayout_2.addWidget(self.label_2)

        self.verticalLayout = QVBoxLayout()
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout.addItem(self.horizontalSpacer)

        self.username_label_in_setting = QLabel(self.setting_page)
        self.username_label_in_setting.setObjectName(u"username_label_in_setting")
        self.username_label_in_setting.setFont(font)

        self.horizontalLayout.addWidget(self.username_label_in_setting)

        self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.horizontalLayout.addItem(self.verticalSpacer_2)

        self.username_text_in_setting = QLabel(self.setting_page)
        self.username_text_in_setting.setObjectName(u"username_text_in_setting")
        self.username_text_in_setting.setFont(font)

        self.horizontalLayout.addWidget(self.username_text_in_setting)

        self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout.addItem(self.horizontalSpacer_2)

        self.horizontalLayout.setStretch(0, 2)
        self.horizontalLayout.setStretch(1, 1)
        self.horizontalLayout.setStretch(3, 1)
        self.horizontalLayout.setStretch(4, 2)

        self.verticalLayout.addLayout(self.horizontalLayout)

        self.horizontalLayout_2 = QHBoxLayout()
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_2.addItem(self.horizontalSpacer_3)

        self.login_time_label_in_setting = QLabel(self.setting_page)
        self.login_time_label_in_setting.setObjectName(u"login_time_label_in_setting")
        self.login_time_label_in_setting.setFont(font)

        self.horizontalLayout_2.addWidget(self.login_time_label_in_setting)

        self.verticalSpacer_3 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.horizontalLayout_2.addItem(self.verticalSpacer_3)

        self.login_time_text_in_setting = QLabel(self.setting_page)
        self.login_time_text_in_setting.setObjectName(u"login_time_text_in_setting")
        self.login_time_text_in_setting.setFont(font)

        self.horizontalLayout_2.addWidget(self.login_time_text_in_setting)

        self.horizontalSpacer_4 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_2.addItem(self.horizontalSpacer_4)

        self.horizontalLayout_2.setStretch(0, 2)
        self.horizontalLayout_2.setStretch(1, 1)
        self.horizontalLayout_2.setStretch(3, 1)
        self.horizontalLayout_2.setStretch(4, 2)

        self.verticalLayout.addLayout(self.horizontalLayout_2)

        self.verticalLayout_2.addLayout(self.verticalLayout)

        self.horizontalLayout_3 = QHBoxLayout()
        self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
        self.horizontalSpacer_11 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_3.addItem(self.horizontalSpacer_11)

        self.security_button = QPushButton(self.setting_page)
        self.security_button.setObjectName(u"security_button")
        self.security_button.setFont(font)

        self.horizontalLayout_3.addWidget(self.security_button)

        self.horizontalSpacer_5 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_3.addItem(self.horizontalSpacer_5)

        self.change_password_button_in_setting = QPushButton(self.setting_page)
        self.change_password_button_in_setting.setObjectName(u"change_password_button_in_setting")
        font1 = QFont()
        font1.setPointSize(20)
        font1.setBold(False)
        font1.setWeight(50)
        self.change_password_button_in_setting.setFont(font1)

        self.horizontalLayout_3.addWidget(self.change_password_button_in_setting)

        self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.horizontalLayout_3.addItem(self.verticalSpacer)

        self.horizontalSpacer_7 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_3.addItem(self.horizontalSpacer_7)

        self.quit_login_button_in_setting = QPushButton(self.setting_page)
        self.quit_login_button_in_setting.setObjectName(u"quit_login_button_in_setting")
        self.quit_login_button_in_setting.setFont(font1)

        self.horizontalLayout_3.addWidget(self.quit_login_button_in_setting)

        self.horizontalSpacer_6 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_3.addItem(self.horizontalSpacer_6)

        self.horizontalLayout_3.setStretch(0, 1)
        self.horizontalLayout_3.setStretch(2, 1)
        self.horizontalLayout_3.setStretch(3, 2)
        self.horizontalLayout_3.setStretch(5, 1)
        self.horizontalLayout_3.setStretch(6, 2)
        self.horizontalLayout_3.setStretch(7, 1)

        self.verticalLayout_2.addLayout(self.horizontalLayout_3)

        self.verticalLayout_2.setStretch(0, 1)
        self.verticalLayout_2.setStretch(1, 1)
        self.verticalLayout_2.setStretch(2, 2)
        self.verticalLayout_2.setStretch(3, 4)

        self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 1, 1)

        self.tabWidget.addTab(self.setting_page, "")
        self.function_page = QWidget()
        self.function_page.setObjectName(u"function_page")
        self.gridLayout_4 = QGridLayout(self.function_page)
        self.gridLayout_4.setObjectName(u"gridLayout_4")
        self.horizontalSpacer_8 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.gridLayout_4.addItem(self.horizontalSpacer_8, 1, 0, 1, 1)

        self.function_button = QPushButton(self.function_page)
        self.function_button.setObjectName(u"function_button")
        self.function_button.setFont(font)

        self.gridLayout_4.addWidget(self.function_button, 1, 1, 1, 1)

        self.verticalSpacer_5 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.gridLayout_4.addItem(self.verticalSpacer_5, 2, 1, 1, 1)

        self.verticalSpacer_6 = QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding)

        self.gridLayout_4.addItem(self.verticalSpacer_6, 0, 1, 1, 1)

        self.horizontalSpacer_9 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.gridLayout_4.addItem(self.horizontalSpacer_9, 1, 2, 1, 1)

        self.tabWidget.addTab(self.function_page, "")
        self.history_page = QWidget()
        self.history_page.setObjectName(u"history_page")
        self.gridLayout_3 = QGridLayout(self.history_page)
        self.gridLayout_3.setObjectName(u"gridLayout_3")
        self.horizontalLayout_4 = QHBoxLayout()
        self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
        self.label_3 = QLabel(self.history_page)
        self.label_3.setObjectName(u"label_3")
        self.label_3.setFont(font)
        self.label_3.setAlignment(Qt.AlignCenter)

        self.horizontalLayout_4.addWidget(self.label_3)

        self.horizontalSpacer_10 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)

        self.horizontalLayout_4.addItem(self.horizontalSpacer_10)

        self.refresh_button = QPushButton(self.history_page)
        self.refresh_button.setObjectName(u"refresh_button")
        self.refresh_button.setFont(font)

        self.horizontalLayout_4.addWidget(self.refresh_button)

        self.gridLayout_3.addLayout(self.horizontalLayout_4, 0, 0, 1, 1)

        self.scrollArea = QScrollArea(self.history_page)
        self.scrollArea.setObjectName(u"scrollArea")
        self.scrollArea.setWidgetResizable(False)
        self.scrollAreaWidgetContents = QWidget()
        self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
        self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 900, 700))
        sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scrollAreaWidgetContents.sizePolicy().hasHeightForWidth())
        self.scrollAreaWidgetContents.setSizePolicy(sizePolicy)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)

        self.gridLayout_3.addWidget(self.scrollArea, 1, 0, 1, 1)

        self.tabWidget.addTab(self.history_page, "")
        self.about_page = QWidget()
        self.about_page.setObjectName(u"about_page")
        self.engineer_label_in_about = QLabel(self.about_page)
        self.engineer_label_in_about.setObjectName(u"engineer_label_in_about")
        self.engineer_label_in_about.setGeometry(QRect(120, 70, 321, 101))
        sizePolicy1 = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(0)
        sizePolicy1.setHeightForWidth(self.engineer_label_in_about.sizePolicy().hasHeightForWidth())
        self.engineer_label_in_about.setSizePolicy(sizePolicy1)
        font2 = QFont()
        font2.setPointSize(30)
        font2.setBold(False)
        font2.setWeight(50)
        font2.setStrikeOut(False)
        self.engineer_label_in_about.setFont(font2)
        self.engineer_text_in_about = QLabel(self.about_page)
        self.engineer_text_in_about.setObjectName(u"engineer_text_in_about")
        self.engineer_text_in_about.setGeometry(QRect(140, 220, 621, 221))
        self.engineer_text_in_about.setFont(font)
        self.engineer_text_in_about.setAlignment(Qt.AlignLeading | Qt.AlignLeft | Qt.AlignTop)
        self.sponsor_button = QCommandLinkButton(self.about_page)
        self.sponsor_button.setObjectName(u"sponsor_button")
        self.sponsor_button.setGeometry(QRect(670, 540, 221, 51))
        self.tabWidget.addTab(self.about_page, "")

        self.gridLayout_2.addWidget(self.tabWidget, 0, 0, 1, 1)

        self.retranslateUi(Form)

        self.tabWidget.setCurrentIndex(2)

        QMetaObject.connectSlotsByName(Form)

    # setupUi

    def retranslateUi(self, Form):
        Form.setWindowTitle(QCoreApplication.translate("Form", u"Form", None))
        self.label_2.setText("")
        self.username_label_in_setting.setText(
            QCoreApplication.translate("Form", u"\u7528\u6237\u540d\uff1a  ", None))
        self.username_text_in_setting.setText(
            QCoreApplication.translate("Form", u"\u5f85\u5c55\u793a\u7684\u7528\u6237\u540d", None))
        self.login_time_label_in_setting.setText(
            QCoreApplication.translate("Form", u"\u767b\u5f55\u65f6\u95f4\uff1a  ", None))
        self.login_time_text_in_setting.setText(
            QCoreApplication.translate("Form", u"\u5f85\u5c55\u793a\u7684\u65f6\u95f4", None))
        self.security_button.setText(
            QCoreApplication.translate("Form", u"\u8bbe\u7f6e\u5bc6\u4fdd\u95ee\u9898", None))
        self.change_password_button_in_setting.setText(
            QCoreApplication.translate("Form", u"\u4fee\u6539\u5bc6\u7801", None))
        self.quit_login_button_in_setting.setText(
            QCoreApplication.translate("Form", u"\u9000\u51fa\u767b\u5f55", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.setting_page),
                                  QCoreApplication.translate("Form", u"\u8bbe\u7f6e", None))
        self.function_button.setText(QCoreApplication.translate("Form", u"\u5f00\u59cb\u67e5\u91cd", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.function_page),
                                  QCoreApplication.translate("Form", u"\u529f\u80fd", None))
        self.label_3.setText(QCoreApplication.translate("Form", u"\u5386\u53f2\u8bb0\u5f55", None))
        self.refresh_button.setText(QCoreApplication.translate("Form", u"\u5237\u65b0", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.history_page),
                                  QCoreApplication.translate("Form", u"\u5386\u53f2\u8bb0\u5f55", None))
        self.engineer_label_in_about.setText(
            QCoreApplication.translate("Form", u"\u5f00\u53d1\u8005\u4fe1\u606f\uff1a", None))
        self.engineer_text_in_about.setText(QCoreApplication.translate("Form",
                                                                       u"<html><head/><body><p><span style=\" font-size:20pt;\">\u9648\u5b50\u7965\uff1a \u540e\u7aef</span></p><p><span style=\" font-size:20pt;\">\u6797\u5a01\uff1a \u67e5\u91cd\u7b97\u6cd5</span></p><p><span style=\" font-size:20pt;\">\u5189\u555f\u4f55+\u6881\u6d69\u7136\uff1a \u524d\u7aef</span></p></body></html>",
                                                                       None))
        self.sponsor_button.setText(QCoreApplication.translate("Form", u"\u597d\u5fc3\u4eba\uff0c\u53ef\u4ee5\n"
                                                                       "\u8bf7\u6211\u559d\u4e00\u676f\u62ff\u94c1\u5417",
                                                               None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.about_page),
                                  QCoreApplication.translate("Form", u"\u5173\u4e8e", None))
    # retranslateUi
